#include "Sphere.h"

Sphere::Sphere()
{
	myCenterPosition.Set(0,0,0);
	myRadius = myRadiusSquared = 0;
}

Sphere::Sphere(const Vector3<float> &aCenter, const float &aRadius)
{
	Init(aCenter, aRadius);
}

Sphere::~Sphere()
{
}

Sphere &Sphere::Init(const Vector3<float> &aCenter, const float &aRadius)
{
	myCenterPosition = aCenter;
	myRadius = aRadius;
	return Calculate();
}

Sphere &Sphere::Calculate()
{
	myRadiusSquared = myRadius * myRadius;
	return *this;
}
